package cn.zhengzhou.springbootmybatis.service.impl;

import cn.zhengzhou.springbootmybatis.mapper.StudentsMapper;
import cn.zhengzhou.springbootmybatis.pojo.Students;
import cn.zhengzhou.springbootmybatis.service.StudentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentsServiceImpl implements StudentsService {
    @Autowired
    private StudentsMapper studentsMapper;

    @Override
    public List<Students> findStudents() {
        return studentsMapper.queryStudents();
    }
}
